﻿<th:block th:with="module=${'${module}'}">
	<!-- 列表按钮工具栏 -->
	<div class="padding border-bottom">
	    <input type="button" class="button button-small checkall"
	           name="checkall" checkfor="id" value="全选"/>
	    <input type="button" class="button button-small border-green"
	           value="添加" th:onclick="${'load' + module + 'CreateForm();'}"/>
	    <input type="button" class="button button-small border-yellow"
	           th:onclick="${'delete' + module + 'Batch();'}" value="批量删除" />
	</div>
	<!-- 列表 -->
	<table class="table table-hover">
	    <!-- 列表的列 -->
	    <tr>
	        <th width="45">选择</th>
	        <th width="150">姓名</th>
	        <th width="50">性别</th>
	        <th width="150">手机号</th>
	        <th width="200">职务</th>
	        <th width="*">区域</th>
	        <th width="100">操作</th>
	    </tr>
	    <!-- 列表的内容 -->
	
	    <tr th:each="r : ${pageData.rows}">
	        <td><input type="checkbox" name="id" th:value="${r.id}"/></td>
	        <td th:text="${r.name}"></td>
	        <td th:text="${r.sexName}"></td>
	        <td th:text="${r.mobile}"></td>
	        <td th:text="${r.positionNames}"></td>
	        <td th:text="${r.regionFullName}"></td>
	        <td><a class="button border-blue button-little"
	               th:onclick="${'load' + module + 'UpdateForm(''' + r.getId() + ''');'}">修改</a>
	        </td>
	    </tr>
	</table>
	<div th:include="pager :: showPager(${pageData}, ${module})"></div>
</th:block>